Amongst scholars it is widely accepted that these books are largely myths and that the people didn’t exist as described.
The mythological story in these books is more important than the actual facts, that is how people until the renaissance used to communicate, everyone understood that books weren’t written as fact but mythology that gave you the basis for morality, law etc. The books weren’t actually written down until around the Roman periods and assembled very similar to the work that the Grimm brothers did in Germany and Eastern Europe in their day.
Basically, the individual books of the Bible were the spoken stories of their day people built their entire way of living around it as it was an important anchor that helped you function properly in society. The stories were just a way of transferring dry facts across generations. Children won’t remember boring watchtower studies, but they will remember fantastical stories, and those stories have a grain of truth but more importantly, knowledge that needs to be transferred and values that need to be taught.
So in my opinion, these stories are very important and valuable, it’s very evident that this is a compendium of almost 250,000 years of human and pre-human wisdom that has been filtered and compressed and needs to be taken serious. You don’t take it as fact, you take it as a lesson.